package top.qform.dynamic;

import top.qform.PayService;
import top.qform.PayServiceImpl;

public class ProxyTest2 {

    public static void main(String[] args) {
        JDKProxy jdkProxy = new JDKProxy();
        PayService payServiceProxy = (PayService) jdkProxy.newProxyInstance(new PayServiceImpl2());
        payServiceProxy.callback("hello world ==> 内部调用 save() 方法");
    }

}
